import { defineStore } from "pinia";
import { ref, computed } from "vue";

export const useCommonStore = defineStore('common', () => {

  const defaultAxis = ref([])
  const scoreInfo = ref({
    2: 0,
    4: 0,
    6: 0,
    8: 0,
  })
  const factorial = ref(2) // 2 - 8 阶

  return {
    factorial,
    defaultAxis,
    scoreInfo
  }
}, {
  unistorage: true
})